#include "DataStructure/Result/ElementalStrain/BARStrainData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const BARStrainData& val1, const BARStrainData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE (m_X1A)
    FIELD_COMPARE (m_X2A)
    FIELD_COMPARE (m_X3A)
    FIELD_COMPARE (m_X4A)
    FIELD_COMPARE (m_AX)
    FIELD_COMPARE (m_MAXA)
    FIELD_COMPARE (m_MINA)
    FIELD_COMPARE (m_MST)
    FIELD_COMPARE (m_X1B)
    FIELD_COMPARE (m_X2B)
    FIELD_COMPARE (m_X3B)
    FIELD_COMPARE (m_X4B)
    FIELD_COMPARE (m_MAXB)
    FIELD_COMPARE (m_MINB)
    FIELD_COMPARE (m_MSC)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const BARStrainData& a, const BARStrainData& b)
{
    return a.m_eId < b.m_eId;
}
